package com.leanit.pmc.index;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by Administrator on 2015/9/2.
 */
@Controller
@RequestMapping("/")
@Scope("prototype")
public class IndexController {

    @RequestMapping(value = "register", method = {RequestMethod.GET, RequestMethod.POST})
    public String register() {
        return "register";
    }

    @RequestMapping(value = "singleWindows", method = {RequestMethod.GET, RequestMethod.POST})
    public String singleWindows() {
        return "single_windows";
    }

    @RequestMapping(value = "singleWindows/index", method = {RequestMethod.GET, RequestMethod.POST})
    public String singleWindowsIndex() {
        return "singlewindows/index";
    }

    @RequestMapping(value = "main", method = {RequestMethod.GET, RequestMethod.POST})
    public String main() {
        return "center/main";
    }


}
